package com.tester.yaa.exam002.computeThread;

/**
 * @Aduthor yinanan
 * @ClassName Test
 * @Date 2022/12/11 19:58
 * @Description 执行
 **/
public class Test {

    public static void main(String[] args) {
        //初始线程，启动
        Resource res = new Resource();
        //生产电脑
        Thread t1 = new Thread(new ProducerThread(res));
        t1.start();
        //搬运电脑
        Thread t2 = new Thread(new ConsumerThread(res));
        t2.start();
    }
}
